package com.xinhe.web.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;


@Entity
@ApiModel(description = "资产统计详情")
@Table(name = "tb_asset_detail")
public class AssetDetail implements Serializable {
    @Id
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("关联业务")
    private Long fBusinessId;
    @ApiModelProperty("交易类型 USER_WITHDRAWAL(\"用户提现\"),\n" +
            "PARTNER_DIVIDENDS(\"合伙人分红\"),\n" +
            "STUDIO_DIVIDENDS(\"工作室分红\"),\n" +
            "FOUNDER_DIVIDENDS(\"创始人分红\"),\n" +
            "MANAGEMENT_ALLOWANCE(\"管理津贴\"),\n" +
            "FARMER_DIVIDENDS(\"农场主分红\"),\n" +
            "XINHE_REWARD(\"芯禾奖励\"),\n" +
            "SELLER_WITHDRAWAL(\"商家提现\"),\n" +
            "SYSTEM_WITHDRAWAL(\"系统自动提现\"),\n" +
            "COMPANY_WITHDRAWAL(\"公司扣缴\"),\n" +
            "USER_WITHDRAWAL_REJECT(\"提现拒绝\"),\n" +
            "USER_EXCHANGE_REJECT(\"兑换茶油卡拒绝\"),\n" +
            "WEIXIN_RMB_RECHARGE(\"微信充值\"),\n" +
            "ADOPTING_OIL_TEA_TREES(\"认养油茶树\"),\n" +
            "ADOPTED_TREE(\"认养油茶树赠送\"),\n" +
            "ADDITIONAL_GIFT_YUN_CHA_SEED(\"额外赠送云茶籽\"),\n" +
            "ADOPTED_OIL_CARD(\"认养油茶树赠送\"),\n" +
            "ADOPTED_OIL_CARD_EXCHANGE_TEA_OIL(\"兑换茶油\"),\n" +
            "ADOPTED_CONSUMER_GOLD_RED_ENVELOPE(\"认养油茶树赠送\"),\n" +
            "SYSTEM_THAW_YUN_CHA_SEED(\"系统解冻\"),\n" +
            "SYSTEM_THAW_CONSUMER_GOLD_RED_ENVELOPE(\"系统自动领取\"),\n" +
            "TWO_THAW_YUN_CHA_SEED(\"直推解冻云茶籽\"),\n" +
            "THREE_THAW_YUN_CHA_SEED(\"间推解冻云茶籽\"),\n" +
            "TWO_THAW_REWARD(\"直推奖励\"),\n" +
            "THREE_THAW_REWARD(\"间推奖励\"),\n" +
            "ADDITIONAL_REWARDS(\"额外奖励\"),\n" +
            "FOUNDER_REWARDS(\"推荐创始人获得奖励\"),\n" +
            "RECOMMEND_FOUNDER_THAWING(\"推荐创始人解冻云茶籽\"),\n" +
            "ADDITIONAL_YUN_CHA_SEED(\"额外解冻云茶籽\"),\n" +
            "EXCHANGE_ZONE_GOODS(\"兑换专区商品\"),\n" +
            "BUY_ZONE_GOODS(\"购买专区商品\"),\n" +
            "SELLER_ORDER_COLLECTION(\"商家订单收入\"),\n" +
            "BUYER_ORDER_PAY(\"买家订单支付\"),\n" +
            "BUYER_ORDER_RETURN(\"订单退款\"),\n" +
            "REVENUE_SELLING_GOODS(\"销售商品收益\");")
    private String tradeType;
    @ApiModelProperty("资产类型 RMB(\"人民币\"),\n" +
            "YUN_CHA_SEED(\"云茶籽\"),\n" +
            "NEW_YUN_CHA_SEED(\"云茶籽\"),\n" +
            "TEA_OIL_CARD(\"茶油卡\"),\n" +
            "CONSUMER_GOLD_RED_ENVELOPE(\"消费金红包\"),\n" +
            "UNFREEZING_CONSUMER_GOLD_RED_ENVELOPE(\"解冻消费金红包\"),\n" +
            "TEA_OIL(\"茶油\");")
    private String assetType;
    @ApiModelProperty("剩余金额")
    private BigDecimal remainder;
    @ApiModelProperty("交易金额")
    private BigDecimal tradeAmount;
    @ApiModelProperty(name = "关联用户")
    private Long fUserId;
    @ApiModelProperty("dtype")
    private String dtype;
    @ApiModelProperty("是否被移除 0否 1是")
    private Integer removed;
    @ApiModelProperty("创建时间")
    private Date createTime;
    @ApiModelProperty("更新时间")
    private Date updateTime;
    @ApiModelProperty("创建人")
    private Long fCreateUserId;
    @ApiModelProperty("更新人")
    private Long fUpdateUserId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getfBusinessId() {
        return fBusinessId;
    }

    public void setfBusinessId(Long fBusinessId) {
        this.fBusinessId = fBusinessId;
    }

    public String getTradeType() {
        return tradeType;
    }

    public void setTradeType(String tradeType) {
        this.tradeType = tradeType;
    }

    public String getAssetType() {
        return assetType;
    }

    public void setAssetType(String assetType) {
        this.assetType = assetType;
    }

    public BigDecimal getRemainder() {
        return remainder;
    }

    public void setRemainder(BigDecimal remainder) {
        this.remainder = remainder;
    }

    public BigDecimal getTradeAmount() {
        return tradeAmount;
    }

    public void setTradeAmount(BigDecimal tradeAmount) {
        this.tradeAmount = tradeAmount;
    }

    public Long getfUserId() {
        return fUserId;
    }

    public void setfUserId(Long fUserId) {
        this.fUserId = fUserId;
    }

    public String getDtype() {
        return dtype;
    }

    public void setDtype(String dtype) {
        this.dtype = dtype;
    }

    public Integer getRemoved() {
        return removed;
    }

    public void setRemoved(Integer removed) {
        this.removed = removed;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Long getfCreateUserId() {
        return fCreateUserId;
    }

    public void setfCreateUserId(Long fCreateUserId) {
        this.fCreateUserId = fCreateUserId;
    }

    public Long getfUpdateUserId() {
        return fUpdateUserId;
    }

    public void setfUpdateUserId(Long fUpdateUserId) {
        this.fUpdateUserId = fUpdateUserId;
    }
}
